package com.easy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @ClassName OrderDetail
 * @Description TODO
 * @Author 周轩霆
 * @Date 2022/5/31 9:37
 **/

public class OrderDetail {

    private Integer id;
    private Integer order_id;
    @JsonFormat(pattern = "yyyy-M-d"  ,timezone = "GMT+8")
    private Date checkindate;
    private int state;

    //private Order order;


    public OrderDetail() {
    }

    public OrderDetail(Integer id, Integer order_id, Date checkindate, int state) {
        this.id = id;
        this.order_id = order_id;
        this.checkindate = checkindate;
        this.state = state;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrder_id() {
        return order_id;
    }

    public void setOrder_id(Integer order_id) {
        this.order_id = order_id;
    }

    public Date getCheckindate() {
        return checkindate;
    }

    public void setCheckindate(Date checkindate) {
        this.checkindate = checkindate;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "OrderDetail{" +
                "id=" + id +
                ", order_id=" + order_id +
                ", checkindate=" + checkindate +
                ", state=" + state +
                '}';
    }
}
